package rensoft.portfolio.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.RootPanel;

import cs.java.lang.HasService;


import rensoft.gwt.client.view.View;
import rensoft.portfolio.client.lib.view.Layout;

public class PortfolioBody extends View<IsWidget> {

  private static Binder uiBinder = GWT.create(Binder.class);

  @UiField
  PortfolioWidget portfolioWidget;

  public PortfolioBody() {
    initWidget(uiBinder.createAndBindUi(this));
    Layout.heightAsParent(portfolioWidget.asWidget(), 14, 615);
  }

  @Override
  public void initialize(HasService parent) {
    super.initialize(parent);
    portfolioWidget.initialize(this);
  }

  @Override
  public void show() {
    RootPanel.get().add(this);
  }

  interface Binder extends UiBinder<IsWidget, PortfolioBody> {}
}
